/*  ----------------------------------- OS Specific Headers           */
#include <stdio.h>
#include <stdlib.h>

/*  ----------------------------------- DSP/BIOS Link                 */
#include <gpptypes.h>
#include <dsplink.h>
#include <errbase.h>

/*  ----------------------------------- Application Header            */
#include <system_os.h>

#include <stdarg.h>
#include <unistd.h>
#include <time.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>

#include <MatrixARM.h>


#if defined (__cplusplus)
extern "C" {
#endif /* defined (__cplusplus) */


/** ============================================================================
 *  @func   main
 *
 *  @desc   Entry point for the application
 *
 *  @modif  None
 *  ============================================================================
 */
int main (int argc, char** argv)
{
    Char8* dspExecutable = NULL;
    Char8* strMatrixSize = NULL;
    Uint8 ProcessorId = 0;

    if ((argc!=3))
    {
        SYSTEM_1Print("Usage : %s <absolute path of DSP executable> <matrix size n (of n x n)>\n",(int) argv[0]);
    }

    else
    {
        dspExecutable   = argv[1];
        ProcessorId     = 0;
        strMatrixSize   = argv[2];
        
        // Start the Matrix Main program.
        Matrix_Main(dspExecutable, ProcessorId, strMatrixSize);
    }

    return 0;
}


#if defined (__cplusplus)
}
#endif /* defined (__cplusplus) */
